home *** CD-ROM | disk | FTP | other *** search
- #include "Folders.h"
- #include "Traps.h"
-
- short HandleOSEvent( EventRecord *event);
- void DoEnDisabling( DialogPtr d, short enable);
- void MySetDialogFont( DialogPtr d);
- void PrepareActivateEvent( EventRecord *event);
- void HandleActivateEvent( WindowPtr w, Boolean activate, EventRecord *event);
- void DoIdle( EventRecord *event);
- void ConcatPStrings( Str255 first, ConstStr255Param second);
- void SetStrItem( Str255 theStr, DialogPtr theDialog, short item);
- void MakeFloatString( Str255 s, double x, short places);
- void UpdateValues( DialogPtr d, double runs, double rate);
- void MaxOversScrollbar( DialogPtr d, short newTotal);
- void SetDialogRect( short id, DialogPtr d, short mnW, short mxW, short mnH, short mxH, short dfW, short dfH);
- void SaveDialogRect( DialogPtr d, short id);
- void SavePreferences();
- void OpenPreferencesFile();
- short GetMinDepth( Rect r);
- void UpdateScores( DialogPtr theDialog);
- void InitScoreCard();
- void DrawItemBox( DialogPtr d, short theItem);
- void DrawStr255At( DialogPtr d, short theItem, Str255 theText);
- void DrawShadow( DialogPtr d);
- void SetDValue( DialogPtr theDlog, short theItem, short theCVal);
- short GetDValue( DialogPtr theDlog, short theItem);
- void InitToolbox();
- void MainEventLoop();
- void BadAlert( short errorNumber);
- void HandleEvent( EventRecord *event);
- void HandleDiskInsert( EventRecord *event);
- void HandleKeyPress( EventRecord *event);
- void HandleMouseDown( EventRecord *event);
- void HandleMenuCommand( long menuResult);
- void HandleUpdateEvent( EventRecord *e);
- void HandleDialogClick( DialogPtr d, short i);
- void DoQuit();
- void DoAboutBox();
-
-
- typedef struct
- {
- short runs;
- short wkts;
- short competition;
- short ov;
- short isB;
- short balls;
- } ScoreRec, **ScoreHandle;
-
-
- #define NIL 0L
- #define ON 1
-
- #define mApple 128
- #define iAbout 1
-
- #define mFile 129
- #define iQuit 1
-
- #define errWimpyROMs 1
- #define errWimpySystem 2
- #define errCorrupt 4
-
-
- Handle ItemHandle;
-
- ScoreRec Score;
- SysEnvRec gMac;
- DialogPtr thisDialog, DLOGclicked, theWindow;
- RGBColor darkGrey;
-
- Rect theBack, ItemRect;
- Boolean Done = false, gQuit = false;
- short gInBackground, count, ItemHit, ItemType, popUpItem, trophyOvers = 55;
- short overArray[] = { 0, 40, 50, 55, 60}, tov, errno;
- short runs, wkts, ov, PreferencesFile, ApplicationFile;
- long menuChosen;
- Str255 theHMSstring, ScoreText;